<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <link rel="stylesheet" href="/static/css/register.css">
    <link rel="apple-touch-icon" sizes="180x180" href="/static/assets/apple-icon-180x180.png">
    <link href="/static/assets/favicon.ico" rel="icon">
    <title>register page</title>
    <link href="/static/css/main.3f6952e4.css" rel="stylesheet">
    <head/>
<body class="minimal" style="background-color: #00a2d4;">
<div id="site-border-left"></div>
<div id="site-border-right"></div>
<div id="site-border-top"></div>
<div id="site-border-bottom"></div>
<!-- Add your content of header-->

<header>
    <nav class="navbar  navbar-fixed-top navbar-default" style="background-color: #00a2d4;">
        <div class="container">
            <div class="collapse navbar-collapse" id="navbar-collapse">
                <ul class="nav navbar-nav ">
                    <li><a href="{% url 'facerecognition:index' %}">01 : 首页</a></li>

                </ul>
                <ul class="nav navbar-nav navbar-right">
                    {% if request.session.is_login %}
                    <li><a>你好,{{ request.session.user_name }}</a></li>
                    <li><a href="{% url 'users:logout' %}">登出</a></li>
                    {% else %}
                    <li><a href="{% url 'users:login' %}">登录</a></li>
                    <li><a href="{%  url 'users:register' %}">注册</a></li>
                    {% endif %}
                </ul>
            </div>
        </div>
    </nav>
</header>
<!-- /container -->
<div class="section-container" style="background-color: #00a2d4;">
    <div class="container">
        <div class="row-input-top">
            <div class="col-xs-12">
                <div class="section-container-spacer text-center">
                    <h1 class="h2">欢迎注册</h1>
                </div>
                <div class="row-input">
                    <div class="col-md-10 col-md-offset-1">
                        <form class='form-register' action="{% url 'users:register' %}" method="post">
                            {% if message %}
                            <div class="alert alert-warning">{{ message }}</div>
                            {% endif %}
                            {% csrf_token %}
                            <div class="form-group">
                                {{ register_form.username}}
                            </div>
                            <div class="form-group">
                                {{ register_form.password1 }}
                            </div>
                            <div class="form-group">
                                {{ register_form.password2 }}
                            </div>
                            <div class="form-group">
                                {{ register_form.email }}
                            </div>
                            <div class="form-group">
                                 {{ register_form.sex }}
                            </div>

                            <button type="reset" class="btn btn-default pull-left">重置</button>
                            <button type="submit" class="btn btn-primary pull-right">下一步，录入人脸</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</head>
</html>